import styles from './index.less';
import {useSelector,useDispatch} from 'umi'
import {useEffect} from 'react'

export default function IndexPage() {
let indexModu = useSelector(state=>state.index)
let dispatch = useDispatch();

useEffect(()=>{
   dispatch({
     type:'index/getBanner'
   })
},[])

  return (
    <div>
      <h1 className={styles.title}>Page index</h1>
    </div>
  );
}
